package cn.studyjava.verify.mybatis.entity;

import java.io.Serializable;
import java.util.Date;

public class Auth implements Serializable {
    private String authId;

    private Date authStartTime;

    private Date authStopTime;

    private Date verifyCreateTime;

    private Integer authTime;

    private Integer authX;

    private Integer authY;

    private Integer offset;

    private Integer inputPointX;

    private Integer inputPointY;

    private Integer inputPointOffsetX;

    private Integer inputPointOffsetY;

    private String appId;

    private Integer status;

    private String reasonCode;

    private String ip;

    private static final long serialVersionUID = 1L;

    public String getAuthId() {
        return authId;
    }

    public void setAuthId(String authId) {
        this.authId = authId == null ? null : authId.trim();
    }

    public Date getAuthStartTime() {
        return authStartTime;
    }

    public void setAuthStartTime(Date authStartTime) {
        this.authStartTime = authStartTime;
    }

    public Date getAuthStopTime() {
        return authStopTime;
    }

    public void setAuthStopTime(Date authStopTime) {
        this.authStopTime = authStopTime;
    }

    public Date getVerifyCreateTime() {
        return verifyCreateTime;
    }

    public void setVerifyCreateTime(Date verifyCreateTime) {
        this.verifyCreateTime = verifyCreateTime;
    }

    public Integer getAuthTime() {
        return authTime;
    }

    public void setAuthTime(Integer authTime) {
        this.authTime = authTime;
    }

    public Integer getAuthX() {
        return authX;
    }

    public void setAuthX(Integer authX) {
        this.authX = authX;
    }

    public Integer getAuthY() {
        return authY;
    }

    public void setAuthY(Integer authY) {
        this.authY = authY;
    }

    public Integer getOffset() {
        return offset;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getInputPointX() {
        return inputPointX;
    }

    public void setInputPointX(Integer inputPointX) {
        this.inputPointX = inputPointX;
    }

    public Integer getInputPointY() {
        return inputPointY;
    }

    public void setInputPointY(Integer inputPointY) {
        this.inputPointY = inputPointY;
    }

    public Integer getInputPointOffsetX() {
        return inputPointOffsetX;
    }

    public void setInputPointOffsetX(Integer inputPointOffsetX) {
        this.inputPointOffsetX = inputPointOffsetX;
    }

    public Integer getInputPointOffsetY() {
        return inputPointOffsetY;
    }

    public void setInputPointOffsetY(Integer inputPointOffsetY) {
        this.inputPointOffsetY = inputPointOffsetY;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId == null ? null : appId.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getReasonCode() {
        return reasonCode;
    }

    public void setReasonCode(String reasonCode) {
        this.reasonCode = reasonCode == null ? null : reasonCode.trim();
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Auth other = (Auth) that;
        return (this.getAuthId() == null ? other.getAuthId() == null : this.getAuthId().equals(other.getAuthId()))
            && (this.getAuthStartTime() == null ? other.getAuthStartTime() == null : this.getAuthStartTime().equals(other.getAuthStartTime()))
            && (this.getAuthStopTime() == null ? other.getAuthStopTime() == null : this.getAuthStopTime().equals(other.getAuthStopTime()))
            && (this.getVerifyCreateTime() == null ? other.getVerifyCreateTime() == null : this.getVerifyCreateTime().equals(other.getVerifyCreateTime()))
            && (this.getAuthTime() == null ? other.getAuthTime() == null : this.getAuthTime().equals(other.getAuthTime()))
            && (this.getAuthX() == null ? other.getAuthX() == null : this.getAuthX().equals(other.getAuthX()))
            && (this.getAuthY() == null ? other.getAuthY() == null : this.getAuthY().equals(other.getAuthY()))
            && (this.getOffset() == null ? other.getOffset() == null : this.getOffset().equals(other.getOffset()))
            && (this.getInputPointX() == null ? other.getInputPointX() == null : this.getInputPointX().equals(other.getInputPointX()))
            && (this.getInputPointY() == null ? other.getInputPointY() == null : this.getInputPointY().equals(other.getInputPointY()))
            && (this.getInputPointOffsetX() == null ? other.getInputPointOffsetX() == null : this.getInputPointOffsetX().equals(other.getInputPointOffsetX()))
            && (this.getInputPointOffsetY() == null ? other.getInputPointOffsetY() == null : this.getInputPointOffsetY().equals(other.getInputPointOffsetY()))
            && (this.getAppId() == null ? other.getAppId() == null : this.getAppId().equals(other.getAppId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getReasonCode() == null ? other.getReasonCode() == null : this.getReasonCode().equals(other.getReasonCode()))
            && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAuthId() == null) ? 0 : getAuthId().hashCode());
        result = prime * result + ((getAuthStartTime() == null) ? 0 : getAuthStartTime().hashCode());
        result = prime * result + ((getAuthStopTime() == null) ? 0 : getAuthStopTime().hashCode());
        result = prime * result + ((getVerifyCreateTime() == null) ? 0 : getVerifyCreateTime().hashCode());
        result = prime * result + ((getAuthTime() == null) ? 0 : getAuthTime().hashCode());
        result = prime * result + ((getAuthX() == null) ? 0 : getAuthX().hashCode());
        result = prime * result + ((getAuthY() == null) ? 0 : getAuthY().hashCode());
        result = prime * result + ((getOffset() == null) ? 0 : getOffset().hashCode());
        result = prime * result + ((getInputPointX() == null) ? 0 : getInputPointX().hashCode());
        result = prime * result + ((getInputPointY() == null) ? 0 : getInputPointY().hashCode());
        result = prime * result + ((getInputPointOffsetX() == null) ? 0 : getInputPointOffsetX().hashCode());
        result = prime * result + ((getInputPointOffsetY() == null) ? 0 : getInputPointOffsetY().hashCode());
        result = prime * result + ((getAppId() == null) ? 0 : getAppId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getReasonCode() == null) ? 0 : getReasonCode().hashCode());
        result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", authId=").append(authId);
        sb.append(", authStartTime=").append(authStartTime);
        sb.append(", authStopTime=").append(authStopTime);
        sb.append(", verifyCreateTime=").append(verifyCreateTime);
        sb.append(", authTime=").append(authTime);
        sb.append(", authX=").append(authX);
        sb.append(", authY=").append(authY);
        sb.append(", offset=").append(offset);
        sb.append(", inputPointX=").append(inputPointX);
        sb.append(", inputPointY=").append(inputPointY);
        sb.append(", inputPointOffsetX=").append(inputPointOffsetX);
        sb.append(", inputPointOffsetY=").append(inputPointOffsetY);
        sb.append(", appId=").append(appId);
        sb.append(", status=").append(status);
        sb.append(", reasonCode=").append(reasonCode);
        sb.append(", ip=").append(ip);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}